package org.szy.plugin.sys.pojo;

import org.szy.core.common.entity.BaseTreeNode;

import java.util.List;

/**
 * 树形结构
 *
 * @author 孙志阳
 * @date 2023-02-14
 * @since 1.0.0
 **/
public class SysOrgTree implements BaseTreeNode<SysOrgTree> {

    private Object id;

    /**
     * pid
     */
    private Long pid;

    /**
     * pids
     */
    private String pids;

    /**
     * 组织名称
     */
    private String name;

    /**
     * 组织代码
     */
    private String code;

    /**
     * 负责人
     */
    private String leader;

    /**
     * 联系电话
     */
    private String phone;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 状态（1-启用，0-停用）
     */
    private Integer status;

    private List<SysOrgTree> children;

    public Object getId() {
        return id;
    }

    public void setId(Object id) {
        this.id = id;
    }

    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    public String getPids() {
        return pids;
    }

    public void setPids(String pids) {
        this.pids = pids;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getLeader() {
        return leader;
    }

    public void setLeader(String leader) {
        this.leader = leader;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public List<SysOrgTree> getChildren() {
        return children;
    }

    public void setChildren(List<SysOrgTree> children) {
        this.children = children;
    }
}
